#define freez(x) do { if (x) free(x); x = NULL; } while (0);